package cn.cvs.service.impl;



import cn.cvs.dao.SysUserMapper;
import cn.cvs.entity.EdocEntry;
import cn.cvs.service.EdocEntryService;
import cn.cvs.utils.MyBatisUtil;

import java.util.List;

/**
 * @auth 吴阳基
 * @date 2024/01/05 14:55
 */
public class EdocEntryServiceImpl implements EdocEntryService {


    @Override
    public List<EdocEntry> list(Integer startIndex, Integer pageSize) {
        return MyBatisUtil.createSqlSession().getMapper(SysUserMapper.class).list(startIndex,pageSize);
    }

    @Override
    public EdocEntry findById(int id) {
        return MyBatisUtil.createSqlSession().getMapper(SysUserMapper.class).findById(id);
    }

    @Override
    public int add(EdocEntry card) {
        return MyBatisUtil.createSqlSession().getMapper(SysUserMapper.class).add(card);
    }

    @Override
    public int update(EdocEntry card) {
        return MyBatisUtil.createSqlSession().getMapper(SysUserMapper.class).update(card);
    }

    @Override
    public int delete(int id) {
        return MyBatisUtil.createSqlSession().getMapper(SysUserMapper.class).delete(id);
    }

    @Override
    public Integer count() {
        return MyBatisUtil.createSqlSession().getMapper(SysUserMapper.class).count();
    }

    @Override
    public List<EdocEntry> listName(Integer id) {
        return MyBatisUtil.createSqlSession().getMapper(SysUserMapper.class).listName(id);
    }
}